import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class AddCart extends HttpServlet
{
	public void doPost(HttpServletRequest req,HttpServletResponse res)throws ServletException, IOException
	{
			PrintWriter out = res.getWriter();
			Cookie c[]=new Cookie[12];
			for(int a=0;a<12;a++)
			{
				String value = req.getParameter("T"+(a+1));
				c[a]= new Cookie("T"+(a+1), value);
				res.addCookie(c[a]);
			}

			res.sendRedirect("http://localhost:8080/ShoppingCart/SeeCart");
	}
}